package cn.xshi.oauth.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.xshi.common.base.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
 * @Desc 租户
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@Data
@ApiModel(value="授权中心租户", description="授权中心租户")
public class OauthTenant extends BaseEntity {

    @ApiModelProperty(value = "id")
    private String id;/**主键id**/

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "状态：0正常1锁定2禁用")
    private int status;

    @ApiModelProperty(value = "有效期")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expDate;

    @ApiModelProperty(value = "隶属子系统")
    private String sysModeId;

    @ApiModelProperty(value = "隶属子系统名称")
    private String sysName;/**隶属子系统名称**/

    @ApiModelProperty(value = "账号类型")
    private String accountTypeId;

    @ApiModelProperty(value = "绑定：true/false")
    private Boolean bind = false;
}
